Skip to content

fix(antigravity): read limits from agy 1.5 token file - #66

Merged
collissimo merged 1 commit into
collin/mainfrom
collin/antigravity-limits-token
Nov 19, 2026
Merged

collissimo merged 1 commit into
collin/mainfrom
collin/antigravity-limits-token

Conversation

@collissimo

Copy link
Copy Markdown
Owner

Antigravity limits showed "Sign in with Google to see Antigravity limits." although the provider was signed in.

Cause: agy 1.5 stores its Google sign-in as antigravity-acp/antigravity-oauth-token ({ token: { refresh_token, … }, auth_method }, no client credentials). The usage probe only read the old acp_token.json, which contained client_id/client_secret.

Fix: the probe reads the new file first and refreshes it with agy's installed-app OAuth client (it ships in every agy binary; GitHub push protection flagged it and it was marked as a false positive). The legacy file still works. The quota endpoints accept an empty body when there is no project id (checked live).

Verification

  • New test reads limits from the agy 1.5 token file… fails on collin/main with the exact symptom (unavailable: unsupported) and passes with the fix; all 18 tests in the file pass.
  • Live: real probe against a copy of the agy 1.5.12 token on Center returned 5 windows (Gemini 5h 74 % used, Gemini weekly 50 %, Claude & GPT shared 5h/weekly, Gemini 4 Argon weekly).
  • lint, format, typecheck clean for the changed files. check:changed has failures only in unrelated files (voice-input controller, scheduled tasks browser test, i18n lint) that exist on collin/main already.

🤖 Generated with Claude Code

agy 1.5 stores its Google sign-in as `antigravity-oauth-token` without
client credentials instead of `acp_token.json`. The usage probe only knew
the old file and showed "Sign in with Google to see Antigravity limits"
for a signed-in account. It now reads the new file first and refreshes
it with agy's installed-app OAuth client; the legacy file still works.

Verified: vp test antigravityUsageLimits (new test fails before, passes after); live probe with the real agy 1.5.12 token returned 5 quota windows; lint/format/typecheck clean
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@collissimo
collissimo merged commit 8278358 into collin/main Nov 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant